package com.ruoyi.project.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.system.domain.SysUserCustomer;

/**
 * 用户与经销商关联Mapper接口
 *
 * @author anan
 * @date 2021-05-05
 */
public interface SysUserCustomerMapper extends BaseMapper<SysUserCustomer>
{
    /**
     * 查询用户与经销商关联
     *
     * @param userId 用户与经销商关联ID
     * @return 用户与经销商关联
     */
    public SysUserCustomer selectSysUserCustomerById(Long userId);

    /**
     * 查询用户与经销商关联列表
     *
     * @param sysUserCustomer 用户与经销商关联
     * @return 用户与经销商关联集合
     */
    public List<SysUserCustomer> selectSysUserCustomerList(SysUserCustomer sysUserCustomer);

    /**
     * 新增用户与经销商关联
     *
     * @param sysUserCustomer 用户与经销商关联
     * @return 结果
     */
    public int insertSysUserCustomer(SysUserCustomer sysUserCustomer);

    /**
     * 修改用户与经销商关联
     *
     * @param sysUserCustomer 用户与经销商关联
     * @return 结果
     */
    public int updateSysUserCustomer(SysUserCustomer sysUserCustomer);

    /**
     * 删除用户与经销商关联
     *
     * @param userId 用户与经销商关联ID
     * @return 结果
     */
    public int deleteSysUserCustomerById(Long userId);

    /**
     * 批量删除用户与经销商关联
     *
     * @param userIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysUserCustomerByIds(Long[] userIds);
}